<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<script type="text/javascript">
	/* js负责验证码刷新 */
	function reloadCode() {
		var imgEle = document.getElementById("vCode");
		imgEle.src = "VerifyCodeServlet?" + new Date().getTime();
	}
</script>
<link rel="stylesheet" href="static/style.css">
</head>
<body>
				<form action="UserServlet" method="post"> 
		    <div class="login">
		<div class="login-1">
			<div class="title">
				<h1>登录</h1>
			</div>

			<div class="login-form">
				<div class="control">
				<input type="text" name="userName"autocomplete="off"  placeholder="请输入用户名">
				<label class="login-field-icon fui-user" for="login-name"></label>
				</div>
    
				<div class="control">
				<input type="password" name="password"autocomplete="off" placeholder="请输入密码" />
				<label ></label>
				</div>
				  <p class="mao"><select name="level" >
							<option value="0">用户</option>
							<option value="1">管理员</option>
						</select>	</p>
                 <p style="font-size:20px;">验证码：<input type="text" name="vCode"autocomplete="off" placeholder="请输入验证码"/>
				<span ><img id="vCode" onclick="reloadCode()" src="VerifyCodeServlet"/></span> 
				 <a href="javascript: reloadCode()"></a>
				</p>
				
				<input type="submit" value="登录" class="blo"/>
				<a href="register.jsp"><button type="button" class="blo-1">注册</button></a>
				<a class="login-link" href="#">忘记密码?</a>
			</div>
		</div>
	</div>
					</form>
				
	
</body>  
</body>
</html>